public class Thread4 {
    public static void main(String[] args) {
        Thread thread=new Thread(()->{
            Thread T=Thread.currentThread();
            System.out.println("当前线程："+T.getName());
        });
        thread.start();
    }
}